package com.mozai.shopping.model.http;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mozai.shopping.utils.bean.ComonQueryBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "分页返回结果")
public class ActivityPageReq extends ComonQueryBean implements Serializable {
    @ApiModelProperty(value = "活动名称",required = true,dataType = "String")
    private String activityName;

    //活动开始时间
    @ApiModelProperty(value = "活动开始时间",required = true,dataType = "Date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date activityStartTime;
    //活动结束时间
    @ApiModelProperty(value = "活动结束时间",required = true,dataType = "Date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date activityEndTime;
}
